package pile.pay.service;


import pile.pay.config.huifuPayConfig.TradePayment;
import pile.pay.config.wxConfig.WxRefundEntity;
import pile.pay.entity.ResponseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IHuiFuPayService {


    /**
     * 统一下单-统一接口
     * @param tradePayment
     * @return
     */
    ResponseResult transactions(TradePayment tradePayment);

    /**
     * 支付回调
     * @param request
     * @param response
     * @return
     */
    String payNotify(HttpServletRequest request, HttpServletResponse response);

    /**
     * 汇付退款回调
     * @param request
     * @param response
     * @return
     */
    String refundsNotify(HttpServletRequest request, HttpServletResponse response);

    /**
     * 汇付申请退款
     * @return
     */
    ResponseResult refunds();
}
